<?php

declare(strict_types=1);

namespace app\model;

use app\model\base\BaseAgentMerchantWithdrawModel;

/**
 * 
 *
 * @mixin \think\Model
 * @property int $id
 * @property int $merchant_id 商户id
 * @property string $created_at 创建时间
 * @property string $updated_at
 * @property string $amount 总金额
 * @property bool $status 状态(1:提现,2:通过,3:已打款)
 * @property-read \app\model\AgentMerchantWithdrawItem $agentMerchantWithdrawItem
 * @property-read \app\model\AgentMerchantWithdrawItem[] $agent_merchant_withdraw_item
 */
class AgentMerchantWithdraw extends BaseAgentMerchantWithdrawModel
{
    const STATUS_SUCCESS = 3;
    const STATUS_CONFIRM = 2;
    const STATUS_SUBMIT = 1;


    public function agentMerchantWithdrawItem()
    {
        return $this->hasMany(AgentMerchantWithdrawItem::class, 'agent_merchant_withdraw_id', 'id');
    }
}
